package com.ms.game.common;

import com.ms.service.module.analysis.PlatformType;

/**
 * GameList 用來區分的作業系統類別
 */
public enum OSType {
	
	ANDROID,
	
	IOS;
	
	/**
	 * 從登入平台類別取得作業系統類別
	 */
	public static OSType getOSTypeByPlatformType(PlatformType platformType){
		switch (platformType) {
		case WINDOWS_PC: {
			return ANDROID;
		}
		case ANDROID_GOOGLEPLAY: {
			return ANDROID;
		}
		case ANDROID_OFFICAL: {
			return ANDROID;
		}
		case IOS_APPSTORE: {
			return IOS;
		}
		case IOS_OFFICAL: {
			return IOS;
		}
		case H5_MOBILE: {
			return ANDROID;
		}
		case H5_WINDOWS: {
			return ANDROID;
		}
		default:
			return null;
		}
	}
}
